<template>
  <div class="recommend-view">
      <div v-for="(item,index) in recommends" :key="index" class="recommend-item">
          <a :href="item.link">
              <img :src="item.image" alt="">
              <div>{{item.title}}</div>
          </a>
      </div>
  </div>
</template>

<script>
export default {
    props:{
        recommends:{
            type:Array
        }
    }
}

</script>
<style scoped>
.recommend-view{
    display: flex;
}
.recommend-item{
    flex:1;
    text-align: center;
    padding: 15px 0 30px;
}
.recommend-item img{
    width: 60px;
    height: 60px;
}
</style>